package com.whstudio.util.string;

import java.io.File;
import java.net.URI;

public class SystemInfo
{

    public SystemInfo()
    {
    }

    private static final URI[] getRootsURI()
    {
        File roots[] = File.listRoots();
        int len = roots.length;
        URI rootsUri[] = new URI[len];
        for(int i = 0; i < roots.length; i++)
        {
            File file = roots[i];
            rootsUri[i] = file.toURI();
        }

        return rootsUri;
    }

    private static final String[] getRootsPath()
    {
        File roots[] = File.listRoots();
        int len = roots.length;
        String rootsPath[] = new String[len];
        for(int i = 0; i < roots.length; i++)
        {
            File file = roots[i];
            rootsPath[i] = file.getAbsolutePath();
        }

        return rootsPath;
    }

    public static final String USER_DIR = System.getProperty("user.dir");
    public static final String rootsPath[] = getRootsPath();
    public static final URI rootsURI[] = getRootsURI();
    public static final String PROJECT_DIR = "F:/Projects/NGBSS2.0_CRM_Business_dev_3/NGBSS_CRM1/NGBSS_CRM_Business/JAVA/CustContact";

}
